﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kingdee.BOS.Core.CloudModel.Cloud
{
    public class SAL_RETURNSTOCK_HeadEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleCurrId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleOrgId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FLocalCurrId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FExchangeTypeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FExchangeRate { get; set; }
    }

    public class SAL_RETURNSTOCKEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public string FRowType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FMaterialId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FUnitID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FRealQty { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? FEntryTaxRate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsFree { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FReturnType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOwnerTypeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FOwnerId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FStockId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FTaxPrice { get; set; }
        /// <summary>
        /// 折扣率
        /// </summary>
        public decimal FDiscountRate { get; set; }
        /// <summary>
        /// 订单单号
        /// </summary>
        public string FOrderNo { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        public string FSOBILLTYPEID { get; set; }
        /// <summary>
        /// 销售订单EntryId
        /// </summary>
        public int? FSOEntryId { get; set; }
        /// <summary>
        /// 源单类型
        /// </summary>
        public string FSrcBillTypeID { get; set; }
        /// <summary>
        /// 源单编号
        /// </summary>
        public string FSrcBillNo { get; set; }
        public OrgBase FStockstatusId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FDeliveryDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSalUnitID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FSalUnitQty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FSalBaseQty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FPriceBaseQty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsOverLegalOrg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FARNOTJOINQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsReturnCheck { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FSettleBySon { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FMaterialID_Sal { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FVmiBusinessStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FAllAmount { get; set; }

        public List<SAL_RETURNSTOCK_Entity_Link> FEntity_Link { get;set; }
    }

    public class SAL_RETURNSTOCK_Entity_Link
    {
        public string FEntity_Link_FRuleId { get; set; }
        public string FEntity_Link_FSTableName { get; set; }
        public int? FEntity_Link_FSBillId { get; set; }//源单内码
        public int? FEntity_Link_FSId { get; set; }//源单分录内码
        public decimal? FEntity_Link_FBaseunitQtyOld { get; set; }
        public decimal? FEntity_Link_FBaseunitQty { get; set; }
        public decimal? FEntity_Link_FSalBaseQtyOld { get; set; }
        public decimal? FEntity_Link_FSalBaseQty { get; set; }
        public decimal? FEntity_Link_FAuxUnitQtyOld { get; set; }
        public decimal? FEntity_Link_FAuxUnitQty { get; set; }
    }

    public class SAL_RETURNSTOCK
    {
        /// <summary>
        /// 
        /// </summary>
        public int FID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FBillTypeID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSaleOrgId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FRetcustId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FTransferBizType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FStockOrgId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FReceiveCustId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleCustId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FPayCustId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOwnerTypeIdHead { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsTotalServiceOrCost { get; set; }
        /// <summary>
        /// 收货方地址
        /// </summary>
        public string FReceiveAddress { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string FLinkMan { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string FLinkPhone { get; set; }
        /// <summary>
        /// 报价单号
        /// </summary>
        public string F_PFKX_Text { get;set;}
        /// <summary>
        /// 
        /// </summary>
        public SAL_RETURNSTOCK_HeadEntity SubHeadEntity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<SAL_RETURNSTOCKEntity> FEntity { get; set; }
    }

}
